import request from '@/utils/request'

var url = process.env.VUE_APP_SUM_KF;
var url_pub = process.env.VUE_APP_SUM_PUB;
// var url_pub = 'http://127.0.0.1:8000/api/v1';


//发票列表
export function getList(data) {
  return request({
    url: url_pub + '/business-admin/invoice-manage/invoice/list',
    method: 'post',
    data: data
  })
}

// 新增发票
export function Add(data) {
  return request({
    url: url_pub + '/business-admin/invoice-manage/invoice/create',
    method: 'post',
    data: data
  })
}


// 修改发票
export function Update(data) {
  return request({
    url: url_pub + '/business-admin/invoice-manage/invoice/modify',
    method: 'post',
    data: data
  })
}

//发票删除
export function Delete(data) {
  return request({
    url: url_pub + '/business-admin/invoice-manage/invoice/delete',
    method: 'post',
    data: data
  })
}


//发票公司列表
export function getInvoicingCompanyList(data) {
  return request({
    url: url_pub + '/business-admin/invoice-manage/invoice/invoicing_company_list',
    method: 'post',
    data: data
  })
}

//增加发票公司
export function addInvoicingCompany(data) {
  return request({
    url: url_pub + '/business-admin/invoicing-company-manage/invoicing-company/create',
    method: 'post',
    data: data
  })
}

//发票公司详情
export function detailInvoicingCompany(data) {
  return request({
    url: url_pub + '/business-admin/invoicing-company-manage/invoicing-company/detail',
    method: 'post',
    data: data
  })
}

//修改发票公司
export function updateInvoicingCompany(data) {
  return request({
    url: url_pub + '/business-admin/invoicing-company-manage/invoicing-company/modify',
    method: 'post',
    data: data
  })
}




